package com.niuwa.p2p.dao.custservice;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.custservice.CustServiceGroup;

@MyBatisDao
public interface CustServiceGroupDao {
    int deleteByPrimaryKey(Long id);

    int insert(CustServiceGroup record);

    int insertSelective(CustServiceGroup record);

    CustServiceGroup selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CustServiceGroup record);

    int updateByPrimaryKey(CustServiceGroup record);
    
    /**
     * 获取某种类型的所有小组
     * @param groupType
     * @return
     */
    List<CustServiceGroup> getOneKindGroup(String groupType);
    
    /**
     * 获取全部小组信息
     * @return
     */
    List<CustServiceGroup> selectAllGroupByConditions(Map<String, Object> paramMap);
    
    /**
     * 获取全部小组个数
     * @return
     */
    int selectCountGroupByConditions(Map<String, Object> paramMap);
}